import {axios} from "../../utils/request";

export function createDomain(domain) {
    //创建图表
    return axios({
        url: `/kg/create_domain/${domain}`,
        method: "POST"
    });
}

export function deleteDomain(domainId, domain) {
    //删除图表
    return axios({
        url: `/kg/delete_domain/${domainId}/${domain}`,
        method: "POST"
    });
}

export function getDomains() {
    //获取所有图表
    return axios({
        url: `/kg/get_domains`,
        method: "POST"
    });
}

